//关联编制单位
import request from '@/utils/request'
export function addvillagelink(listquery) {
    return request({
        url: '/api/authorizerelation/addvillagelink',
        method: 'post',
        headers: {
            "Content-Type": "application/json"
        },
        data: 
         listquery
    })
}
//批量关联
export function addsvillageslink(listquery) {
    return request({
        url: '/api/authorizerelation/addsvillageslink',
        method: 'post',
        headers: {
            "Content-Type": "application/json"
        },
        data: 
         listquery
    })
}
//修改关联
export function editvillageslink(listquery) {
    return request({
        url: '/api/authorizerelation/editvillageslink',
        method: 'post',
        headers: {
            "Content-Type": "application/json"
        },
        data: 
         listquery
    })
}
//删除关联
export function delvillageslink(id){
    return request({
        url: '/api/authorizerelation/delvillageslink',
        method: 'post',
        data:id,
        headers: {
            "Content-Type": "multipart/form-data"
        },
    })
}

//上传excel文件批量关联
export function uploadLinks(id){
    return request({
        url: '/api/authorizerelation/uploadLinks',
        method: 'post',
        data:id,
        headers: {
            "Content-Type": "multipart/form-data"
        },
    })
}